﻿<%@ Page Title="Rachunki" Language="C#" MasterPageFile="~/Sites/Accounts/AccountsMaster.Master" AutoEventWireup="true" CodeBehind="ListAccounts.aspx.cs" Inherits="BankSite.Sites.Accounts.Accounts" %>

<asp:Content ID="Title" runat="server" ContentPlaceHolderID="FeaturedContent">
    <section class="featured">
        <div class="content-wrapper">
            <hgroup class="title">
                <h1><%: Title %>.</h1>
                <h2>Lista Twoich rachunków.</h2>
            </hgroup>
        </div>
    </section>
</asp:Content>

<asp:Content ID="Content4" ContentPlaceHolderID="MainContent" runat="server">

    <asp:GridView ID="GridView1" runat="server"
        AllowPaging="True" AllowSorting="True" DataSourceID="AccountDataSource"
        CellPadding="4" ForeColor="#333333" GridLines="None" AutoGenerateColumns="false">
        <AlternatingRowStyle BackColor="White"></AlternatingRowStyle>
        <Columns>
            <asp:CommandField ShowSelectButton="True"></asp:CommandField>
            <asp:BoundField DataField="numer_rachunku" HeaderText="Numer Rachunku"></asp:BoundField>
            <asp:BoundField DataField="rodzaj_nazwa" HeaderText="Nazwa"></asp:BoundField>
            <asp:BoundField DataField="rodzaj_opis" HeaderText="Opis"></asp:BoundField>
            <asp:BoundField DataField="saldo_ksiegowe" HeaderText="Saldo księgowe"></asp:BoundField>
            <asp:BoundField DataField="saldo_dostepne" HeaderText="Śr. dostępne"></asp:BoundField>
        </Columns>
        <EditRowStyle BackColor="#7C6F57"></EditRowStyle>

        <FooterStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White"></FooterStyle>

        <HeaderStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White"></HeaderStyle>

        <PagerStyle HorizontalAlign="Center" BackColor="#666666" ForeColor="White"></PagerStyle>

        <RowStyle BackColor="#E3EAEB"></RowStyle>

        <SelectedRowStyle BackColor="#C5BBAF" Font-Bold="True" ForeColor="#333333"></SelectedRowStyle>

        <SortedAscendingCellStyle BackColor="#F8FAFA"></SortedAscendingCellStyle>

        <SortedAscendingHeaderStyle BackColor="#246B61"></SortedAscendingHeaderStyle>

        <SortedDescendingCellStyle BackColor="#D4DFE1"></SortedDescendingCellStyle>

        <SortedDescendingHeaderStyle BackColor="#15524A"></SortedDescendingHeaderStyle>
    </asp:GridView>
    <asp:EntityDataSource runat="server" ID="AccountDataSource" DefaultContainerName="BankBaseEntities" ConnectionString="name=BankBaseEntities" EnableFlattening="False" EntitySetName="getROR" ></asp:EntityDataSource>
    <asp:QueryExtender ID="DepositForClientFilter" runat="server" TargetControlID="AccountDataSource">
             
            <asp:RangeExpression MaxType="Inclusive" MinType="Inclusive" DataField="id">
                   <asp:SessionParameter SessionField="ClientID" />
                   <asp:SessionParameter SessionField="ClientID" />
              
            </asp:RangeExpression>
            
        </asp:QueryExtender>
    
</asp:Content>

